Auto merge of #4085 - alexcrichton:fix-rewrite, r=matklad
authorbors <bors@rust-lang.org>
Mon, 22 May 2017 20:18:03 +0000 (20:18 +0000)
committerbors <bors@rust-lang.org>
Mon, 22 May 2017 20:18:03 +0000 (20:18 +0000)
commit9fcdbb44fec18d10c086b6aba8143bc06a199761
tree0140ee1cb1c09557f456f430624225124adca81e
parent26d1d9d600cb88fb7ddaa3d04987d00f7cae13ed
parentd1e70e49b3096d5923f5eee854b616835f6fd9ad
Auto merge of #4085 - alexcrichton:fix-rewrite, r=matklad

Fix a serialization error on publish

In TOML we have to emit all keys before we emit all sub-tables, so to handle
that for dependencies just transform everything to an elaborated version.

Closes #4081